package com.insta.library.model;

import java.util.Date;

public class Subscriber extends Person {

	private String identifier;
	private String password;
	private boolean administrator;
	private Date joinDate;

	public Subscriber() {
	}

	public Subscriber(Person p, String identifier, String password,
			boolean administrator, Date joinDate) {
		super(p.getName(), p.getFirstName(), p.getAge(), p.getAddress(), p
				.getCity(), p.getPostCode(), p.getBirthday());
		this.identifier = identifier;
		this.password = password;
		this.administrator = administrator;
		this.joinDate = joinDate;
	}

	public String getIdentifier() {
		return this.identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public boolean isAdministrator() {
		return this.administrator;
	}

	public void setAdministrator(boolean administrator) {
		this.administrator = administrator;
	}

	public Date getJoinDate() {
		return this.joinDate;
	}

	public void setJoinDate(Date joinDate) {
		this.joinDate = joinDate;
	}

}
